<!-- 此登录框与 business主题相匹配-->
<?php if(Yii::app()->user->isGuest):?>
		<!-- login form start-->
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'login-form',
			'enableClientValidation'=>true,
			'clientOptions'=>array(
				'validateOnSubmit'=>true,
			),
			'htmlOptions'=>array(
				'class'=>'search'
			)
		)); ?>
		<h2><?php echo Yii::t('company','members <span>area</span>');?></h2>
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>		  
		<div class="clear"></div>
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>		  
		<div class="clear"></div>
		
		<?php echo $form->checkBox($model,'rememberMe',array('style'=>'width:15px;','class'=>'left')); ?>
		<?php echo $form->label($model,'rememberMe'); ?>		
		<?php echo $form->error($model,'rememberMe'); ?>
		
		 <input name="login" type="submit" id="login" value="<?php echo Yii::t('login','Login');?>" title="Login" class="submit" />
		<hr class="space" />
		<?php $this->endWidget(); ?>
		<!-- login form end-->
<?php else :?>
	    <div class="search" style="background: white;">
    	<div class="row">
    		欢迎使用本系统，<?php echo Yii::app()->user->name;?>
    	</div>
    	<div class="row">
    		站点信息：
    	</div>
    	<div class="row">
    		进入<a href="<?php echo Yii::app()->createUrl('/admin');?>">控制面板</a>
    	</div>
    	<div class="row">
    		<a href="<?php echo Yii::app()->createUrl('site/logout');?>">Logout</a>
    	</div>    
    </div>
<?php endif;?>